
<%@page import="java.util.Iterator"%>
<%@page import="com.cn.entity.TiJianxiangmu"%>
<%@page import="java.util.Set"%>
<%@page import="com.cn.dao.TaocanDao"%>
<%@page import="com.cn.entity.Taocan"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@page import="com.cn.entity.Department"%>
<%@page import="com.cn.entity.Doctor"%>
<%@page import="com.cn.dao.DoctorDao"%>


<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<h4>套餐详细信息</h4>


<% Taocan taocan=null;double prices=0;
int taocanid=0;
String id=request.getParameter("taocanid");
if (id!=null){taocanid=Integer.parseInt(id);}
TaocanDao ud=new TaocanDao(); 
 taocan=ud.scanOne(taocanid);
%>
<h5><%=taocan.getTaocanming() %></h5>
<table>
<tr>
<td>包含项目名</td>
<td>价格</td>
</tr>

<%
Set<TiJianxiangmu> xiangmu=taocan.getXiangmu();
Iterator<TiJianxiangmu> it=xiangmu.iterator();

while(it.hasNext()){
	TiJianxiangmu xm=it.next(); 
%>
<tr>
<td><%=xm.getXiangmuming() %></td>
<td><%=xm.getPrice() %></td>
</tr>
<%
prices=prices+xm.getPrice();
%>
<%} %>



</table>
<table>
<tr><td>套餐价格</td>
<td><%=prices %></td>
</tr>
</table>

</body>
</html>